<admintpl file="header"/>
<head/>
<body>
<div class="wrap J_check_wrap">
  <ul class="nav nav-tabs">
     <li ><a href="{:U('Subscribe/index')}">全部公众号</a></li>

 	  <li class="active"><a href="{:U('Forepart/Subindex')}">推送账号</a></li>
 	   
 	  <li ><a href="{:U('Forepart/Subadd')}">添加账号</a></li>
  </ul>
    <div class="row">
        <div class="span12">
          
        </div>
    </div>
<form class="form-horizontal J_ajaxForm" method="post" action="{:U('forepart/Sublist')}">
  <div class="table_list">
<style type="text/css">
	td>img{ width:40px; height:40px; cursor:pointer;}

     .listorders{width: 35px;}
	
</style>
 
    <table width="100%" cellspacing="0" class="table table-hover">
      <thead>
        <tr>
          <th width="80">ID</th>

          <th align="left" >公众号名称</th>
          <th align="left" >公众号id</th>
            <th align="left">分类 </th>
          <th align="left" > 图片 </th>
          <th align="left">粉丝量</th>
          <th align="left">排序</th>
          <th align="left" >管理</th>
        </tr>
      </thead>
      <tbody>
        <foreach name="data" item="vo">
        <tr>
          <td>{$vo.id}</td>
          <td>{$vo.title}</td>
          <td>{$vo.details.pwc_id}</td>
           <td>{$comm[$vo[types]]}</td>
         <td>
          	<if condition="$vo['img'] neq '' ">
          	<img src="__ROOT__/{$vo.img}" >	
          	<else />
          	未上传展示图片
          	</if>
          </td>
         <td>{$vo.details.pwc_fsnum}</td>
          <td><input type="text" class="listorders" name="list[{$vo.id}]" value="{$vo.list}" /></td>
          
		
         <td  class="text-c">
              <a href="{:U('forepart/SubEdit',array('id'=>$vo['id']))}"   >[编辑]</a>
              <a href="{:U('forepart/SubDel',array('id'=>$vo['id']))}"  class="J_ajax_del"  >[删除]</a>
          </td>
        
        </tr>
        </foreach>
      </tbody>
    </table>
      <div class="pagination">{$page}</div>
  </div>
  
    <div class="form-actions">
          <button type="submit" class="btn btn-primary btn_submit  J_ajax_submit_btn">排序</button>
      </div>
      </form>
  
  
  

<div class="modal fade bs-example-modal-lg" id="exampleModal"   tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
		 <button data-dismiss="modal" class="close" type="button">&times;</button>
			
	
    <div class="modal-content" style="text-align:center;">
      <img src="" style=" margin:15px auto;">
    </div>
  </div>
</div>
  
</div>
<script src="__ROOT__/statics/js/common.js"></script>
<script type="text/javascript">
	
$("td>img").click(function(){

var src=$(this).attr("src");
	$('#exampleModal').find("img").attr("src",src);
	$('#exampleModal').modal('toggle')
});
	
</script>

</body>
</html>